package org.blade.personal.mode.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.blade.personal.mode.BaseEntity;

/**
 * 赋权表
 * @author ZGF
 *
 */
@Entity
@Table(name="sys_ref_authority")
public class SystemRefAuthority  extends BaseEntity<Long>{

	@Column(name = "ref_id")
	private Long refId;
	
	@ManyToOne
	@JoinColumn(name = "sys_authority_id")
	private SystemAuthority systemAuthority;
	
	@Column(name = "ref_type")
	private int refType;
	
	public Long getRefId() {
		return refId;
	}

	public void setRefId(Long refId) {
		this.refId = refId;
	}

	public SystemAuthority getSystemAuthority() {
		return systemAuthority;
	}

	public void setSystemAuthority(SystemAuthority systemAuthority) {
		this.systemAuthority = systemAuthority;
	}

	public int getRefType() {
		return refType;
	}

	public void setRefType(int refType) {
		this.refType = refType;
	}

}
